// home页面的异步请求
import request from './index'
import request2 from './create2'
// 判断歌曲 是否有版权
export function getBanquan(id) {
  return request2({
    method: "GET",
    url: "/check/music",
    params: {
      id
    }
  })
}


// 获取 歌曲详情
export function getSongsDetails(ids) {
  return request({
    method: "GET",
    url: "/song/detail",
    params: {
      ids
    }
  })
}

// 获取歌曲的 url
export function getSongUrl(id) {
  return request({
    method: "GET",
    url: "/song/url",
    params: {
      id
    }
  })
}


// 获取 歌曲的 歌词
export function getSongLyric(id) {
  return request({
    method: "GET",
    url: "/lyric",
    params: {
      id
    }
  })
}